/**
 * jims
 */
package com.jims.master.modules.patient.myFriend.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 建立好友关系Entity
 * @author 王永强
 * @version 2017-07-03
 */
public class SysUserFriend extends DataEntity<SysUserFriend> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户id
	private String friendId;		// 用户好友id
	private String faccid;		//用户好友网易id
	public SysUserFriend() {
		super();
	}

	public SysUserFriend(String id){
		super(id);
	}

	@NotNull(message="用户id不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=1, max=64, message="用户好友id长度必须介于 1 和 64 之间")
	public String getFriendId() {
		return friendId;
	}

	public void setFriendId(String friendId) {
		this.friendId = friendId;
	}

	public String getFaccid() {return faccid;}

	public void setFaccid(String faccid) {this.faccid = faccid;}
}